package com.zhang.pojo;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author zhangshihao
 * @create 2023-02-28 10:08
 *
 * 员工表
 */
@Data
@NoArgsConstructor
public class Employee {
    private Integer id;
    private String lastName;
    private String email;
    private Integer gender; // 0女 1男
    private Integer did;
    private String departmentName;
    private Date birth;

    public Employee(Integer id, String lastName, String email, Integer gender, Integer did, String departmentName) {
        this.id = id;
        this.lastName = lastName;
        this.email = email;
        this.gender = gender;
        this.did = did;
        this.departmentName = departmentName;
        this.birth = new Date();
    }
}
